package cn.iocoder.yudao.module.cms.feedback.vo;

import cn.iocoder.yudao.framework.validation.PhoneNumber;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

@Schema(description = "意见反馈信息新增 Request VO")
@Data
public class AppFeedbackCreateReqVO {

    @Schema(description = "昵称", example = "羡民")
    @NotEmpty(message = "昵称不能为空")
    private String nickname;

    @Schema(description = "手机号", example = "15285116029")
    @PhoneNumber
    private String mobile;

    @Schema(description = "栏目编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "栏目编号不能为空")
    private Long categoryId;

    @Schema(description = "内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "内容不能为空")
    private String content;

    @Schema(description = "图片地址列表")
    @Size(max = 9, message = "图片不能超过 9 张")
    private List<String> picUrls;

}
